import { RouteRecordRaw, createRouter, createWebHashHistory } from 'vue-router'

const modules = import.meta.glob('../views/**/**.vue')

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'Login',
    component: modules['../views/login/index.vue']
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
